package com.yunban.project.template.model.domain;

import com.baomidou.mybatisplus.annotation.*;
import net.lab1024.sa.base.ProjectConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: lijiajun
 * @date: 2024-11-06
 * @version: 1.0 t
 */
@Data
@Schema(description = "前端块类型")
@TableName(ProjectConstants.TEMPLATE_TABLE_PREFIX + "type")
public class Type implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @Schema(description = "类型ID")
    private Long id;
    @Schema(description = "类型名称")
    private String name;
    @Schema(description = "类型Code")
    private String code;
    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}
